package com.demo1;

/**
 * Created by Administrator on 2017/3/25.
 */
public class Sanyuan {
    public static void main(String[] args) {
        int i, k;
        i = 5;
        k = (i >= 0 ? i : -i);
        System.out.println("the absolute of" + i + " is " + k);
        i = -5;
        k = (i >= 0 ? i : -i);
        System.out.println("the absolute of" + i + " is " + k);
    }
}
